package model;

public class GroupManege {
	public String gid;
	public String uid;
	public int Score;
	public java.sql.Date lastTime;
	public int continueDay;
	public GroupManege(String gid, String uid, int score, java.sql.Date lastTime,
			int continueDay) {
		super();
		this.gid = gid;
		this.uid = uid;
		Score = score;
		this.lastTime = lastTime;
		this.continueDay = continueDay;
	}
	/*
	 * 根据等级分获取称号
	 * */
	public static String getLevel(int score){
		if(score<50){
			return "村民";
		}else if (score<150) {
			return "村长";
		}else if(score<300){
			return "镇长";
		}else if (score<500) {
			return "县长";
		}else if (score<700) {
			return "市长";
		}else if (score<900) {
			return "省长";
		}else {
			return "主席";
		}
		
	}
}
